Skip to content

[pull] master from apify:master#184

Merged
pull[bot] merged 1 commit intothreatcode:masterfrom
apify:master
Apr 22, 2026
Merged

[pull] master from apify:master#184
pull[bot] merged 1 commit intothreatcode:masterfrom
apify:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 22, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…#3590)

Pages enforcing a Trusted Types Content Security Policy (e.g. Google
Sheets) block any browser-side HTML string assignment — including
innerHTML and DOMParser.parseFromString. The iframe expansion in
parseWithCheerio used frame.evaluate() to inject iframe content into the
browser DOM, which was silently blocked by CSP, causing iframe content
to be dropped without any visible error.

The fix moves HTML assembly out of the browser entirely. page.content()
is called first, loaded into Cheerio on the Node.js side, and iframe
content (fetched via Playwright's Node.js API, which is unaffected by
CSP) is substituted directly in the Cheerio tree.

Closes #3588
@pull pull Bot locked and limited conversation to collaborators Apr 22, 2026
@pull pull Bot added the ⤵️ pull label Apr 22, 2026
@pull pull Bot merged commit c0b9b50 into threatcode:master Apr 22, 2026
6 of 7 checks passed
@pull pull Bot had a problem deploying to github-pages April 22, 2026 16:19 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant